Optimal. Leaf size=463 \[ -\frac{3 \left (514+2717 \sqrt{2}\right ) \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} \text{EllipticF}\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right ),\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{140\ 2^{3/4} \left (2+3 \sqrt{2}\right ) \sqrt{2 x^4+2 x^2+1}}-\frac{27}{70} \sqrt{2 x^4+2 x^2+1} x^3-\frac{1}{14} \left (2 x^4+2 x^2+1\right )^{3/2} x-\frac{2211 \sqrt{2 x^4+2 x^2+1} x}{140 \sqrt{2} \left (\sqrt{2} x^2+1\right )}-\frac{213}{140} \sqrt{2 x^4+2 x^2+1} x+\frac{17}{16} \sqrt{51} \tanh ^{-1}\left (\frac{\sqrt{\frac{17}{3}} x}{\sqrt{2 x^4+2 x^2+1}}\right )+\frac{2211 \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} E\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{140\ 2^{3/4} \sqrt{2 x^4+2 x^2+1}}-\frac{289 \left (3-\sqrt{2}\right ) \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} \Pi \left (\frac{1}{24} \left (12+11 \sqrt{2}\right );2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{16\ 2^{3/4} \left (2+3 \sqrt{2}\right ) \sqrt{2 x^4+2 x^2+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.671821, antiderivative size = 875, normalized size of antiderivative = 1.89, number of steps used = 19, number of rules used = 9, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.31, Rules used = {1335, 1091, 1176, 1197, 1103, 1195, 1208, 1216, 1706} \[ -\frac{1}{14} x \left (2 x^4+2 x^2+1\right )^{3/2}-\frac{3}{35} x \left (x^2+2\right ) \sqrt{2 x^4+2 x^2+1}-\frac{3}{20} x \left (2 x^2+9\right ) \sqrt{2 x^4+2 x^2+1}-\frac{6 \sqrt{2} x \sqrt{2 x^4+2 x^2+1}}{35 \left (\sqrt{2} x^2+1\right )}-\frac{309 x \sqrt{2 x^4+2 x^2+1}}{20 \sqrt{2} \left (\sqrt{2} x^2+1\right )}+\frac{17}{16} \sqrt{51} \tanh ^{-1}\left (\frac{\sqrt{\frac{17}{3}} x}{\sqrt{2 x^4+2 x^2+1}}\right )+\frac{6 \sqrt [4]{2} \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} E\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{35 \sqrt{2 x^4+2 x^2+1}}+\frac{309 \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} E\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{20\ 2^{3/4} \sqrt{2 x^4+2 x^2+1}}-\frac{3 \left (9+8 \sqrt{2}\right ) \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} F\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{20\ 2^{3/4} \sqrt{2 x^4+2 x^2+1}}-\frac{3 \left (3+2 \sqrt{2}\right ) \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} F\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{70 \sqrt [4]{2} \sqrt{2 x^4+2 x^2+1}}-\frac{51 \left (5+\sqrt{2}\right ) \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} F\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{16 \sqrt [4]{2} \sqrt{2 x^4+2 x^2+1}}+\frac{867 \left (3-\sqrt{2}\right ) \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} F\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{112 \sqrt [4]{2} \sqrt{2 x^4+2 x^2+1}}-\frac{289 \left (11-6 \sqrt{2}\right ) \left (\sqrt{2} x^2+1\right ) \sqrt{\frac{2 x^4+2 x^2+1}{\left (\sqrt{2} x^2+1\right )^2}} \Pi \left (\frac{1}{24} \left (12+11 \sqrt{2}\right );2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{224 \sqrt [4]{2} \sqrt{2 x^4+2 x^2+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1335
Rule 1091
Rule 1176
Rule 1197
Rule 1103
Rule 1195
Rule 1208
Rule 1216
Rule 1706
Rubi steps
\begin{align*} \int \frac{x^2 \left (1+2 x^2+2 x^4\right )^{3/2}}{3-2 x^2} \, dx &=\int \left (-\frac{1}{2} \left (1+2 x^2+2 x^4\right )^{3/2}+\frac{3 \left (1+2 x^2+2 x^4\right )^{3/2}}{2 \left (3-2 x^2\right )}\right ) \, dx\\ &=-\left (\frac{1}{2} \int \left (1+2 x^2+2 x^4\right )^{3/2} \, dx\right )+\frac{3}{2} \int \frac{\left (1+2 x^2+2 x^4\right )^{3/2}}{3-2 x^2} \, dx\\ &=-\frac{1}{14} x \left (1+2 x^2+2 x^4\right )^{3/2}-\frac{3}{14} \int \left (2+2 x^2\right ) \sqrt{1+2 x^2+2 x^4} \, dx-\frac{3}{8} \int \left (10+4 x^2\right ) \sqrt{1+2 x^2+2 x^4} \, dx+\frac{51}{4} \int \frac{\sqrt{1+2 x^2+2 x^4}}{3-2 x^2} \, dx\\ &=-\frac{3}{35} x \left (2+x^2\right ) \sqrt{1+2 x^2+2 x^4}-\frac{3}{20} x \left (9+2 x^2\right ) \sqrt{1+2 x^2+2 x^4}-\frac{1}{14} x \left (1+2 x^2+2 x^4\right )^{3/2}-\frac{1}{140} \int \frac{36+48 x^2}{\sqrt{1+2 x^2+2 x^4}} \, dx-\frac{1}{80} \int \frac{192+216 x^2}{\sqrt{1+2 x^2+2 x^4}} \, dx-\frac{51}{16} \int \frac{10+4 x^2}{\sqrt{1+2 x^2+2 x^4}} \, dx+\frac{867}{8} \int \frac{1}{\left (3-2 x^2\right ) \sqrt{1+2 x^2+2 x^4}} \, dx\\ &=-\frac{3}{35} x \left (2+x^2\right ) \sqrt{1+2 x^2+2 x^4}-\frac{3}{20} x \left (9+2 x^2\right ) \sqrt{1+2 x^2+2 x^4}-\frac{1}{14} x \left (1+2 x^2+2 x^4\right )^{3/2}+\frac{27 \int \frac{1-\sqrt{2} x^2}{\sqrt{1+2 x^2+2 x^4}} \, dx}{10 \sqrt{2}}+\frac{51 \int \frac{1-\sqrt{2} x^2}{\sqrt{1+2 x^2+2 x^4}} \, dx}{4 \sqrt{2}}+\frac{1}{35} \left (6 \sqrt{2}\right ) \int \frac{1-\sqrt{2} x^2}{\sqrt{1+2 x^2+2 x^4}} \, dx-\frac{1}{56} \left (867 \left (2-3 \sqrt{2}\right )\right ) \int \frac{1+\sqrt{2} x^2}{\left (3-2 x^2\right ) \sqrt{1+2 x^2+2 x^4}} \, dx+\frac{1}{56} \left (867 \left (3-\sqrt{2}\right )\right ) \int \frac{1}{\sqrt{1+2 x^2+2 x^4}} \, dx-\frac{1}{8} \left (51 \left (5+\sqrt{2}\right )\right ) \int \frac{1}{\sqrt{1+2 x^2+2 x^4}} \, dx-\frac{1}{35} \left (3 \left (3+2 \sqrt{2}\right )\right ) \int \frac{1}{\sqrt{1+2 x^2+2 x^4}} \, dx-\frac{1}{20} \left (3 \left (16+9 \sqrt{2}\right )\right ) \int \frac{1}{\sqrt{1+2 x^2+2 x^4}} \, dx\\ &=-\frac{3}{35} x \left (2+x^2\right ) \sqrt{1+2 x^2+2 x^4}-\frac{3}{20} x \left (9+2 x^2\right ) \sqrt{1+2 x^2+2 x^4}-\frac{309 x \sqrt{1+2 x^2+2 x^4}}{20 \sqrt{2} \left (1+\sqrt{2} x^2\right )}-\frac{6 \sqrt{2} x \sqrt{1+2 x^2+2 x^4}}{35 \left (1+\sqrt{2} x^2\right )}-\frac{1}{14} x \left (1+2 x^2+2 x^4\right )^{3/2}+\frac{17}{16} \sqrt{51} \tanh ^{-1}\left (\frac{\sqrt{\frac{17}{3}} x}{\sqrt{1+2 x^2+2 x^4}}\right )+\frac{309 \left (1+\sqrt{2} x^2\right ) \sqrt{\frac{1+2 x^2+2 x^4}{\left (1+\sqrt{2} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{20\ 2^{3/4} \sqrt{1+2 x^2+2 x^4}}+\frac{6 \sqrt [4]{2} \left (1+\sqrt{2} x^2\right ) \sqrt{\frac{1+2 x^2+2 x^4}{\left (1+\sqrt{2} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{35 \sqrt{1+2 x^2+2 x^4}}+\frac{867 \left (3-\sqrt{2}\right ) \left (1+\sqrt{2} x^2\right ) \sqrt{\frac{1+2 x^2+2 x^4}{\left (1+\sqrt{2} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{112 \sqrt [4]{2} \sqrt{1+2 x^2+2 x^4}}-\frac{51 \left (5+\sqrt{2}\right ) \left (1+\sqrt{2} x^2\right ) \sqrt{\frac{1+2 x^2+2 x^4}{\left (1+\sqrt{2} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{16 \sqrt [4]{2} \sqrt{1+2 x^2+2 x^4}}-\frac{3 \left (3+2 \sqrt{2}\right ) \left (1+\sqrt{2} x^2\right ) \sqrt{\frac{1+2 x^2+2 x^4}{\left (1+\sqrt{2} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{70 \sqrt [4]{2} \sqrt{1+2 x^2+2 x^4}}-\frac{3 \left (9+8 \sqrt{2}\right ) \left (1+\sqrt{2} x^2\right ) \sqrt{\frac{1+2 x^2+2 x^4}{\left (1+\sqrt{2} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{20\ 2^{3/4} \sqrt{1+2 x^2+2 x^4}}-\frac{289 \left (11-6 \sqrt{2}\right ) \left (1+\sqrt{2} x^2\right ) \sqrt{\frac{1+2 x^2+2 x^4}{\left (1+\sqrt{2} x^2\right )^2}} \Pi \left (\frac{1}{24} \left (12+11 \sqrt{2}\right );2 \tan ^{-1}\left (\sqrt [4]{2} x\right )|\frac{1}{4} \left (2-\sqrt{2}\right )\right )}{224 \sqrt [4]{2} \sqrt{1+2 x^2+2 x^4}}\\ \end{align*}
Mathematica [C] time = 0.276295, size = 214, normalized size = 0.46 \[ \frac{-(9669-5247 i) \sqrt{1-i} \sqrt{1+(1-i) x^2} \sqrt{1+(1+i) x^2} \text{EllipticF}\left (i \sinh ^{-1}\left (\sqrt{1-i} x\right ),i\right )-160 x^9-752 x^7-2456 x^5-2080 x^3+4422 i \sqrt{1-i} \sqrt{1+(1-i) x^2} \sqrt{1+(1+i) x^2} E\left (\left .i \sinh ^{-1}\left (\sqrt{1-i} x\right )\right |i\right )+10115 (1-i)^{3/2} \sqrt{1+(1-i) x^2} \sqrt{1+(1+i) x^2} \Pi \left (-\frac{1}{3}-\frac{i}{3};\left .i \sinh ^{-1}\left (\sqrt{1-i} x\right )\right |i\right )-892 x}{560 \sqrt{2 x^4+2 x^2+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.021, size = 547, normalized size = 1.2 \begin{align*} -{\frac{{x}^{5}}{7}\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}-{\frac{37\,{x}^{3}}{70}\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}-{\frac{223\,x}{140}\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}-{\frac{9\,{\it EllipticF} \left ( x\sqrt{-1+i},1/2\,\sqrt{2}+i/2\sqrt{2} \right ) }{35\,\sqrt{-1+i}}\sqrt{1+ \left ( 1-i \right ){x}^{2}}\sqrt{1+ \left ( 1+i \right ){x}^{2}}{\frac{1}{\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}}}+{\frac{ \left ({\frac{6}{35}}-{\frac{6\,i}{35}} \right ) \left ({\it EllipticF} \left ( x\sqrt{-1+i},{\frac{\sqrt{2}}{2}}+{\frac{i}{2}}\sqrt{2} \right ) -{\it EllipticE} \left ( x\sqrt{-1+i},{\frac{\sqrt{2}}{2}}+{\frac{i}{2}}\sqrt{2} \right ) \right ) }{\sqrt{-1+i}}\sqrt{1+ \left ( 1-i \right ){x}^{2}}\sqrt{1+ \left ( 1+i \right ){x}^{2}}{\frac{1}{\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}}}-{\frac{531\,{\it EllipticF} \left ( x\sqrt{-1+i},1/2\,\sqrt{2}+i/2\sqrt{2} \right ) }{20\,\sqrt{-1+i}}\sqrt{-i{x}^{2}+{x}^{2}+1}\sqrt{i{x}^{2}+{x}^{2}+1}{\frac{1}{\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}}}-{\frac{{\frac{309\,i}{40}}{\it EllipticF} \left ( x\sqrt{-1+i},{\frac{\sqrt{2}}{2}}+{\frac{i}{2}}\sqrt{2} \right ) }{\sqrt{-1+i}}\sqrt{-i{x}^{2}+{x}^{2}+1}\sqrt{i{x}^{2}+{x}^{2}+1}{\frac{1}{\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}}}-{\frac{309\,{\it EllipticE} \left ( x\sqrt{-1+i},1/2\,\sqrt{2}+i/2\sqrt{2} \right ) }{40\,\sqrt{-1+i}}\sqrt{-i{x}^{2}+{x}^{2}+1}\sqrt{i{x}^{2}+{x}^{2}+1}{\frac{1}{\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}}}+{\frac{{\frac{309\,i}{40}}{\it EllipticE} \left ( x\sqrt{-1+i},{\frac{\sqrt{2}}{2}}+{\frac{i}{2}}\sqrt{2} \right ) }{\sqrt{-1+i}}\sqrt{-i{x}^{2}+{x}^{2}+1}\sqrt{i{x}^{2}+{x}^{2}+1}{\frac{1}{\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}}}+{\frac{289}{8\,\sqrt{-1+i}}\sqrt{-i{x}^{2}+{x}^{2}+1}\sqrt{i{x}^{2}+{x}^{2}+1}{\it EllipticPi} \left ( x\sqrt{-1+i},-{\frac{1}{3}}-{\frac{i}{3}},{\frac{\sqrt{-1-i}}{\sqrt{-1+i}}} \right ){\frac{1}{\sqrt{2\,{x}^{4}+2\,{x}^{2}+1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int \frac{{\left (2 \, x^{4} + 2 \, x^{2} + 1\right )}^{\frac{3}{2}} x^{2}}{2 \, x^{2} - 3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (2 \, x^{6} + 2 \, x^{4} + x^{2}\right )} \sqrt{2 \, x^{4} + 2 \, x^{2} + 1}}{2 \, x^{2} - 3}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int \frac{x^{2} \sqrt{2 x^{4} + 2 x^{2} + 1}}{2 x^{2} - 3}\, dx - \int \frac{2 x^{4} \sqrt{2 x^{4} + 2 x^{2} + 1}}{2 x^{2} - 3}\, dx - \int \frac{2 x^{6} \sqrt{2 x^{4} + 2 x^{2} + 1}}{2 x^{2} - 3}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{{\left (2 \, x^{4} + 2 \, x^{2} + 1\right )}^{\frac{3}{2}} x^{2}}{2 \, x^{2} - 3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]